<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>日志记录</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/custom.form.css">
    <style type="text/css">
        .layui-disabled, .layui-disabled:hover {
            color: #000000 !important;
            cursor: not-allowed !important;
        }

        .layui-form-label {
            width: 100px;
        }

        .layui-input-block {
            margin-left: 130px;
        }

        .layui-input layui-unselect {
            cursor: pointer;
        }

        .layui-table {
            width: 96%;
        }
    </style>
</head>
<body>

<input type="hidden" th:value="${relevance}" id="relevance"/>

<div class="panel panel-default operation" hidden>
    <div class="panel-heading title"></div>
    <div class="layui-tab">
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <div class="layui-card-body">
                    <form class="layui-form" action="" lay-filter="info">
                        <label for="_tabKey"></label><input name="_tabKey" id="_tabKey" hidden>
                        <label for="_jcajxxuuid"></label><input name="_jcajxxuuid" id="_jcajxxuuid" hidden>
                        <label for="_logid"></label><input name="_logid" id="_logid" hidden>
                        <div id="inspectionHearInfo">
                            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
                                <legend id="jcajbh"></legend>
                            </fieldset>
                            <div class="layui-form-item">
                                <label class="layui-form-label">案件名称</label>
                                <div class="layui-input-inline">
                                    <label for="ajmc"></label><input type="text" id="ajmc" name="ajmc"
                                                                     class="layui-input layui-disabled"
                                                                     disabled="disabled">
                                </div>

                                <label class="layui-form-label">检查项目</label>
                                <div class="layui-input-inline">
                                    <label for="jcxm"></label><input type="text" id="jcxm" name="jcxm"
                                                                     class="layui-input layui-disabled"
                                                                     disabled="disabled">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">检查人</label>
                                <div class="layui-input-inline">
                                    <label for="jcry"></label><input type="text" id="jcry" name="jcry"
                                                                     class="layui-input layui-disabled"
                                                                     disabled="disabled">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">纳税人名称</label>
                                <div class="layui-input-inline">
                                    <label for="nsrmc"></label><input type="text" id="nsrmc" name="nsrmc"
                                                                      class="layui-input layui-disabled"
                                                                      disabled="disabled">
                                </div>
                                <label class="layui-form-label">纳税人识别号</label>
                                <div class="layui-input-inline">
                                    <label for="nsrsbh"></label><input type="text" id="nsrsbh" name="nsrsbh"
                                                                       class="layui-input layui-disabled"
                                                                       disabled="disabled">
                                </div>
                            </div>
                        </div>
                        <div id="denoWorkDiv">
                            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
                                <legend>完成工作</legend>
                            </fieldset>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <label for="content1"></label>
                                    <textarea disabled="disabled" rows="2" name="content1" id="content1"
                                              placeholder="请输入反馈信息,1-500个字符" autocomplete="off"
                                              class="layui-textarea layui-disabled"
                                              onkeyup="texLength1(this, 'textarea_length1');"></textarea>
                                    <span class="red" id="textarea_length1">0</span> / <span
                                        class="num_count1">500</span>
                                </div>
                            </div>
                        </div>
                        <div id="content2and3Div"></div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn layui-btn-primary" id="btn_cancel">返回</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="layui-tab table_div">
    <div class="layui-tab-content">


        <div class="layui-tab" lay-filter="test-hash">
            <ul class="layui-tab-title">
                <li class="layui-this" lay-id="11">日志记录</li>
                <li lay-id="22">调度记录</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <table class="layui-table" id="waitShowTable" lay-filter="waitShowTable"></table>
                </div>
                <div class="layui-tab-item">
                    <table class="layui-table" id="gzdd_table" lay-filter="gzdd_table"></table>
                </div>
            </div>
        </div>
        <!-- 日志列表-->
        <div id="searchParam">
        </div>
    </div>
</div>

<script type="text/html" id="waittool">
    <a class="layui-btn layui-btn-xs" lay-event="discipline">查看</a>
</script>

<!--工作调度-->
<script type="text/html" id="gzddTool">
    <a class="layui-btn layui-btn-xs" lay-event="viewGzdd">查看</a>
<!--    <a class="layui-btn layui-btn-xs" lay-event="delGzdd">删除</a>-->
</script>

<!--填报工作调度-->
<div id="tbGzddForm" style="display: none">
    <div id="gzddContent" style="margin-top: 10px"></div>
</div>


<script src="/layui/layui.all.js"></script>
<script src="/js/core.util.js"></script>
<script src="/js/jquery.min.js"></script>
<script th:inline="none">
    // 获取token
    let token = CoreUtil.getData("access_token");
    // 地址栏转义token中的#号
    let tokenQuery = token.replace("#", "%23");
    let gzdd_table;
    let waitShowTable;
    let denoShowTable;
    let table = layui.table;
    let form = layui.form;
    let layer = layui.layer;
    let $ = jQuery = layui.jquery;
    let laydate = layui.laydate;
    let upload = layui.upload;
    let element = layui.element;
    let maxlength = 500;
    let inspectionMan = "";
    let contentdate = null;
    let relevance = null;
    let _surveyDetail = [];

    $(function () {
        const url = new URL(window.location.href);
        relevance = url.searchParams.get("relevance");
        $('#relevance').val(relevance); // 设置到隐藏框中，后续用得上
        console.log("接收到的 relevance：", relevance);
    });

    layui.use(['table', 'layer', 'laydate', 'upload', 'element', 'laytpl'], function () {
        //日志表
        waitShowTable = table.render({
            elem: '#waitShowTable',
            contentType: 'application/json',
            headers: {
                "authorization": token
            },
            where: {
                relevance: $("#relevance").val()
            },
            page: true // 开启分页
            ,
            url: '/statistics/loglist' //数据接口
            ,
            method: 'POST',
            parseData: function (res) { //将原始数据解析成 table 组件所规定的数据
                return {
                    "code": res.code, //解析接口状态
                    "msg": res.msg, //解析提示文本
                    "count": CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
                    "data": CoreUtil.isEmpty(res.data) ? null
                        : CoreUtil.paramsDecrypt(res.data.records)
                }
            },
            cols: [[
                {
                    align: 'center',
                    field: 'id',
                    title: '日志编号',
                    sort: true,
                    hide: true
                }, {
                    align: 'center',
                    field: 'createId',
                    title: '填报人',
                    sort: true,
                }, {
                    align: 'center',
                    field: 'type',
                    title: '日志类型',
                    sort: true,
                    templet: function (item) {
                        if (item.type == "1") {
                            return "日常日志";
                        } else if (item.type == "2") {
                            return "案件日志";
                        } else {
                            return "未知：" + item.type;
                        }
                    }
                }, {
                    align: 'center',
                    field: 'contentdate',
                    title: '日志日期',
                    sort: true,
                }, {
                    align: 'center',
                    field: 'nsrmc',
                    title: '纳税人名称',
                    sort: true,
                }, {
                    align: 'center',
                    field: 'nsrsbh',
                    title: '纳税人识别号',
                    sort: true,
                }, {
                    align: 'center',
                    field: 'content1',
                    title: '完成工作',
                    sort: true,
                }, {
                    fixed: 'right',
                    align: 'center',
                    toolbar: "#waittool",
                    title: '操作'
                }
            ]],
            toolbar: '#toolbar'
        });
        // 列操作
        table.on('tool(waitShowTable)', function (obj) {
            const data = obj.data;
            switch (obj.event) {
                case 'discipline':
                    view("0", data);
                    break;
            }
        });
        //个人表
        denoShowTable = table.render({
            elem: '#denoShowTable',
            contentType: 'application/json',
            headers: {
                "authorization": token
            },
            page: true // 开启分页
            ,
            url: '/workflow/log/listbysectionchiefdeno' //数据接口
            ,
            method: 'POST',
            parseData: function (res) { //将原始数据解析成 table 组件所规定的数据
                return {
                    "code": res.code, //解析接口状态
                    "msg": res.msg, //解析提示文本
                    "count": CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
                    "data": CoreUtil.isEmpty(res.data) ? null
                        : CoreUtil.paramsDecrypt(res.data.records)
                }
            },

            cols: [[
                {
                    align: 'center',
                    width: 230,
                    field: 'id',
                    title: '日志编号',
                    sort: true,
                    hide: true
                }, {
                    align: 'center',
                    width: 158,
                    field: 'type',
                    title: '日志类型',
                    sort: true,
                    templet: function (item) {
                        if (item.type == "1") {
                            return "日常日志";
                        } else if (item.type == "2") {
                            return "案件日志";
                        } else {
                            return "未知：" + item.type;
                        }
                    }
                }, {
                    align: 'center',
                    width: 158,
                    field: 'createId',
                    title: '日志填写人',
                    sort: true,
                }, {
                    align: 'center',
                    width: 158,
                    field: 'contentdate',
                    title: '日志日期',
                    sort: true,
                }, {
                    align: 'center',
                    width: 218,
                    field: 'nsrmc',
                    title: '纳税人名称',
                    sort: true,
                }, {
                    align: 'center',
                    width: 218,
                    field: 'nsrsbh',
                    title: '纳税人识别号',
                    sort: true,
                }, {
                    align: 'center',
                    width: 518,
                    field: 'content1',
                    title: '完成工作',
                    sort: true,
                }, /* {
							align : 'center',
							width : 218,
							field : 'content2',
							title : '发现问题',
							sort : true,
						}, {
							align : 'center',
							width : 218,
							field : 'content3',
							title : '下步打算',
							sort : true,
						}, */ {
                    align: 'center',
                    width: 168,
                    field: 'createTime',
                    title: '创建日期',
                    sort: true,
                }
            ]],
            toolbar: '#logToolbar'
        });
        // 列操作
        table.on('tool(denoShowTable)', function (obj) {
            var data = obj.data;
            switch (obj.event) {
                case 'view':
                    view("1", data);
                    break;
            }
        });
        // 返回
        $("#btn_cancel").click(function () {
            back();
            return false;
        });
        $("#wait").click(function () {
            waitSearch();
        });
        $("#deno").click(function () {
            denoSearch();
        });
        //保存日志
        form.on('submit(saveWorkflowLog)', function () {
            const sectionchiefContent = $("#sectionchiefContent").val();
            if (CoreUtil.isEmpty(sectionchiefContent)) {
                layer.msg("【科长审批】内容未填写！");
                return false;
            }
            const mapArr = {
                sectionchiefContent: sectionchiefContent,
                id: $("#_logid").val()
            };
            const url = "/workflow/log/addsectionchief";
            CoreUtil.sendPost(url, mapArr, function (res) {
                if (res.code === 0) {
                    layer.msg("科长审批成功！");
                    back();
                } else {
                    layer.msg(res.msg);
                    return false;
                }
            });
        });
        //工作调度表
        gzdd_table = table.render({
            elem: '#gzdd_table',
            contentType: 'application/json',
            headers: {
                "authorization": token
            },
            where: {
                "bz": "10086",
                "jcajxxuuids": new URL(window.location.href).searchParams.get("relevance")
            },
            page: true, // 开启分页
            url: "/workflow/log/queryGzddLogTables",//数据接口
            method: 'POST',
            parseData: function (res) { //将原始数据解析成 table 组件所规定的数据
                return {
                    "code": res.code, //解析接口状态
                    "msg": res.msg, //解析提示文本
                    "count": CoreUtil.isEmpty(res.data) ? 0 : res.data.total, //解析数据长度
                    "data": CoreUtil.isEmpty(res.data) ? null
                        : CoreUtil.paramsDecrypt(res.data.records)
                }
            },
            cols: [[
                {
                    align: 'center',
                    width: 1,
                    field: 'uuid',
                    title: 'uuid',
                    hide: true
                },
                {
                    align: 'center',
                    width: 1,
                    field: 'jcajxxuuid',
                    title: '检查UUID',
                    hide: true
                }, {
                    align: 'center',
                    width: 1,
                    field: 'mold',
                    title: 'mold',
                    hide: true
                }, {
                    align: 'center',
                    width: 180,
                    field: 'jcajbh',
                    title: '检查案件编号',
                    sort: true
                }, {
                    align: 'center',
                    width: 200,
                    field: 'nsrsbh',
                    title: '纳税人识别号',
                    sort: true
                }, {
                    align: 'center',
                    width: 300,
                    field: 'nsrmc',
                    title: '纳税人名称',
                    sort: true
                }, {
                    align: 'center',
                    width: 240,
                    field: 'mbmc',
                    title: '调度名称',
                    sort: true
                }, {
                    align: 'center',
                    width: 300,
                    field: 'ddjsry',
                    title: '调度接收人员',
                    sort: true
                }, {
                    align: 'center',
                    width: 120,
                    field: 'ddzt',
                    title: '调度状态',
                    sort: true
                }, {
                    field: 'createTime', title: '调度创建日期', width: 120, align: "center", templet: function (d) {
                        if (!d.createTime) {
                            return '';
                        }
                        return layui.util.toDateString(d.createTime, 'yyyy-MM-dd');
                    }
                }, {
                    align: 'center',
                    width: 1,
                    field: 'ajContent',
                    title: '调度内容',
                    hide: true
                }, {
                    align: 'center',
                    width: 1,
                    field: 'ajContentId',
                    title: '调度内容id',
                    hide: true
                }, {
                    fixed: 'right',
                    align: 'center',
                    width: 120,
                    toolbar: "#gzddTool",
                    title: '操作',
                    sort: true
                }
            ]], toolbar: '#toolbar'
        });
        // 列操作
        table.on('tool(gzdd_table)', function (obj) {
            const data = obj.data;
            switch (obj.event) {
                case 'viewGzdd':
                    console.log("viewGzdd+mold", data.mold);
                    // 加载页面
                    let mapArr = {
                        "id": data.mold
                    }
                    // 将调度模板写入到DIV中
                    let gzddContent = $("#gzddContent");
                    CoreUtil.sendPost("/workflow/log/survey/getGzddContentById", mapArr, function (res) {
                        if (res.code === 0) {
                            gzddContent.html("");
                            let _data = res.data;
                            _surveyDetail = _data;
                            let viewSurveyTmp = "";
                            for (let _i in _data) {
                                let _optionsConent = _data[_i].optionsConent;
                                let _contentSurveyJson = eval("(" + _optionsConent + ")");
                                let _optionsTitle = _data[_i].optionsTitle;
                                let _optionsType = _data[_i].optionsType;
                                let _id = _data[_i].id;
                                let _surveyId = _data[_i].surveyId;
                                if (_optionsType == "1") {
                                    // 文本
                                    viewSurveyTmp += "<div class='layui-form-item'>"
                                        + "<label style='' class='layui-form-label'>" + _optionsTitle + "</label>"
                                        + "<div class='layui-input-block'>";
                                    if (_contentSurveyJson[0] == "date") {
                                        viewSurveyTmp += "<input type='text' name='date' class='layui-date layui-input " + _id + "' placeholder='请输入yyyy-mm-dd格式'>";
                                    } else {
                                        viewSurveyTmp += "<input type='text' class='layui-input " + _id + "' placeholder='请输入'>";
                                    }
                                    viewSurveyTmp += "</div><br>";
                                } else if (_optionsType == "2") {
                                    let l = Object.keys(_contentSurveyJson).length;
                                    // 多选
                                    viewSurveyTmp += "<div class='layui-form-item'>"
                                        + "<label style='height: " + l * 60 + "px' class='layui-form-label'>" + _optionsTitle + "</label>";
                                    for (let _ii in _contentSurveyJson) {
                                        /* viewSurveyTmp += "<div class='mui-input-row mui-checkbox mui-left'>"
                                                      + "<label class='layui-form-label'>"+_contentSurveyJson[_ii][0]+"</label>"
                                                      + "<input class='"+_id+"' name='checkbox1' value='"+_contentSurveyJson[_ii][0]+"' type='checkbox'>"
                                                      + "</div>"; */
                                        viewSurveyTmp += "<div onclick='optionsDuoxuan(this," + _ii + ")' class='layui-unselect layui-form-checkbox " + _id + "' lay-skin='primary'><div></div><i class='layui-icon layui-icon-ok'></i></div>" + _contentSurveyJson[_ii][0];
                                        let flag = _contentSurveyJson[_ii][1];
                                        if (flag) {
                                            viewSurveyTmp += "<input style='width: 40%' type='text' class='layui-input " + _id + "_" + _ii + "' placeholder='请输入'>";
                                        }
                                        viewSurveyTmp += "<br>";
                                    }
                                    viewSurveyTmp += "<hr>";
                                } else if (_optionsType == "3") {
                                    let l = Object.keys(_contentSurveyJson).length;
                                    // 单选
                                    viewSurveyTmp += "<div class='layui-form-item'>"
                                        + "<label style='height: " + l * 60 + "px' class='layui-form-label'>" + _optionsTitle + "</label>";
                                    for (let _ii in _contentSurveyJson) {
                                        /* viewSurveyTmp += "<div class='layui-form'>"
                                                      // + "<label>"+_contentSurveyJson[_ii][0]+"</label>"
                                                      + "<input class='"+_id+"' name='radio1_"+_id+"' value='"+_contentSurveyJson[_ii][0]+"' type='radio'>"
                                                      + "</div>"; */
                                        viewSurveyTmp += "<div onclick='optionsDanxuan(this," + _ii + ")' class='layui-unselect layui-form-radio " + _id + "'><i class='layui-anim layui-icon layui-icon-radio'></i><div>" + _contentSurveyJson[_ii][0] + "</div></div>";
                                        let flag = _contentSurveyJson[_ii][1];
                                        if (flag) {
                                            viewSurveyTmp += "<input style='width: 40%' type='text' class='layui-input " + _id + "_" + _ii + "' placeholder='请输入'>";
                                        }
                                        viewSurveyTmp += "<br>";
                                    }
                                    viewSurveyTmp += "<hr>";
                                }
                            }
                            gzddContent.html(viewSurveyTmp);
                        } else {
                            layer.msg(res.msg);
                            return false;
                        }
                    });
                    // 在此处输入 layer 的任意代码
                    layer.open({
                        type: 1,
                        skin: 'layui-layer-molv',
                        title: "工作调度",
                        area: ['60%', '500px'],
                        shade: 0.6, // 遮罩透明度
                        maxmin: true, // 允许全屏最小化
                        shadeClose: true,
                        content: jQuery("#tbGzddForm"),
                        btn: ['确定', '取消'],
                        btnAlign: 'c',  // 让按钮居中
                        yes: function (index) {
                            searchDd();
                            layer.close(index);
                        }
                    });
                    break;
                case 'delGzdd':
                    layer.open({
                        content: '确定要删除么？',
                        yes: function (index) {
                            layer.close(index); //如果设定了yes回调，需进行手工关闭
                            CoreUtil.sendPost("/workflow/log/deleteGzddLog/" + data.uuid, null, function (res) {
                                layer.msg(res.msg);
                                searchDd();
                            });
                        }
                    });
                    break;
            }
        });
    });

    // 执行查询
    function waitSearch() {
        waitShowTable.reload({
            where: {},
            page: {
                curr: 1
            }
        });
    }

    // 个人已办执行查询
    function denoSearch() {
        denoShowTable.reload({
            where: {},
            page: {
                curr: 1
            }
        });
    }

    function texLength1(obj, id) {
        var curr = obj.value.length;
        if (curr > maxlength) {
            layer.msg('反馈内容字数在' + maxlength + '字以内');
        } else {
            document.getElementById(id).innerHTML = curr;
        }
    }

    function texLength2(obj, id) {
        var curr = obj.value.length;
        if (curr > maxlength) {
            layer.msg('推送原因字数在' + maxlength + '字以内');
        } else {
            document.getElementById(id).innerHTML = curr;
        }
    };

    function back() {
        $("#inspectionHearInfo").hide();
        $(".table_div").show();
        $(".operation").hide();
    }

    function view(id, data) {
        const _id = data.id;
        $("#_logid").val(_id);
        const mapArr = {
            id: _id,
        };
        CoreUtil.sendPost("/workflow/log/view", mapArr, function (res) {
            if (res.code === 0) {
                $("#denoWorkDiv").hide();
                // 案卷日志
                var inspectionhearInfo = res.data[1];
                var _data = res.data[2];
                if (!CoreUtil.isEmpty(inspectionhearInfo)) {
                    $("#content2and3Div").show();
                    $("#inspectionHearInfo").show();

                    $("#jcajbh").html("案件编号：" + inspectionhearInfo.jcajbh);
                    $("#_jcajxxuuid").val(inspectionhearInfo.jcajxxuuid);
                    $("#ajmc").val(inspectionhearInfo.ajmc);
                    $("#jcxm").val(inspectionhearInfo.jcxm);
                    $("#nsrmc").val(inspectionhearInfo.nsrmc);
                    $("#nsrsbh").val(inspectionhearInfo.nsrsbh);
                    $("#jcry").val(inspectionhearInfo.jcry);

                } else {
                    $("#content2and3Div").hide();
                    $("#inspectionHearInfo").hide();
                }
                // 加载模板
                var viewSurveyTmp = "";
                for (var _i in _data) {
                    var _optionsConent = _data[_i].optionsFeedback;
                    var _optionsTitle = _data[_i].optionsTitle;
                    var _optionsType = _data[_i].optionsType;
                    var _id = _data[_i].id;
                    if (_optionsType == "1") {
                        // 文本
                        viewSurveyTmp += "<div class='layui-form-item'>"
                            + "<label style='' class='layui-form-label'>" + _optionsTitle + "</label>"
                            + "<div class='layui-input-block'>"
                            + "<input disabled='ture' type='text' class='layui-unselect  layui-input " + _id + "' value='" + _optionsConent + "'>"
                            + "</div>";

                    } else if (_optionsType == "2") {
                        var _contentSurveyJson = eval("(" + _optionsConent + ")");
                        var l = Object.keys(_contentSurveyJson).length;
                        // 多选
                        viewSurveyTmp += "<div class='layui-form-item'>"
                            + "<label style='height: " + l * 60 + "px' class='layui-form-label'>" + _optionsTitle + "</label>";
                        for (var _ii in _contentSurveyJson) {

                            if (_contentSurveyJson[_ii].includes("_")) {
                                var _contentSurveyJsonArr = _contentSurveyJson[_ii].split("_");
                                viewSurveyTmp += "<div onclick='optionsDuoxuan(this," + _ii + ")' class='layui-form-checked  layui-unselect layui-form-checkbox " + _id + "' lay-skin='primary'><div></div><i class='layui-icon layui-icon-ok'></i></div>" + _contentSurveyJsonArr[0];
                                if (!CoreUtil.isEmpty(_contentSurveyJsonArr[1])) {
                                    viewSurveyTmp += "<input disabled='ture' style='width: 40%' type='text' class='layui-unselect layui-input " + _id + "_" + _ii + "' value='" + _contentSurveyJsonArr[1] + "'>";
                                }

                            } else {
                                viewSurveyTmp += "<div onclick='optionsDuoxuan(this," + _ii + ")' class='layui-form-checked  layui-unselect layui-form-checkbox " + _id + "' lay-skin='primary'><div></div><i class='layui-icon layui-icon-ok'></i></div>" + _contentSurveyJson[_ii];
                            }
                            viewSurveyTmp += "<br>";
                        }
                        viewSurveyTmp += "<hr>";
                    } else if (_optionsType == "3") {
                        // 单选
                        viewSurveyTmp += "<div class='layui-form-item'>"
                            + "<label style='height: " + l * 60 + "px' class='layui-form-label'>" + _optionsTitle + "</label>";
                        if (_optionsConent.includes("_")) {
                            var _contentSurveyJsonArr = _optionsConent.split("_");
                            viewSurveyTmp += "<div onclick='optionsDanxuan(this," + _ii + ")' class='layui-form-radioed layui-unselect layui-form-radio " + _id + "'><i class='layui-anim layui-icon layui-icon-radio'></i><div>" + _contentSurveyJsonArr[0] + "</div></div>"
                            if (!CoreUtil.isEmpty(_contentSurveyJsonArr[1])) {
                                viewSurveyTmp += "<input disabled='ture' style='width: 40%' type='text' class='layui-input layui-disabled " + _id + "_" + _ii + "' value='" + _contentSurveyJsonArr[1] + "'>";
                            }
                        } else {
                            viewSurveyTmp += "<div onclick='optionsDanxuan(this," + _ii + ")' class='layui-form-radioed layui-unselect layui-form-radio " + _id + "'><i class='layui-anim layui-icon layui-icon-radio'></i><div>" + _optionsConent + "</div></div>"
                        }
                        viewSurveyTmp += "<br>";
                        viewSurveyTmp += "<hr>";
                    }
                }
                $("#content2and3Div").html(viewSurveyTmp);

                $(".operation").show();
                $(".table_div").hide();

            } else {
                layer.msg(res.msg);
                return false;

            }

        });
    }

    //查询调度列表
    function searchDd() {
        gzdd_table.reload({
            contentType: 'application/json',
            headers: {
                "authorization": token
            },
            where: {
                "jcajxxuuids": new URL(window.location.href).searchParams.get("relevance")
            },
            url: "/workflow/log/queryGzddLogTables",//数据接口
            page: {
                curr: 1
            }
        });
    }


</script>

</body>
</html>